﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Process_Procedures
{
    /// <summary>
    /// 工艺流程实体
    /// </summary>
    [Table("processflowmodel")]
    public class ProcessFlowModel : BaseEntity
    {
        /// <summary>
        /// 工艺流程编号
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string FlowCode { get; set; }
        /// <summary>
        /// 工艺流程名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string FlowName { get; set; }

        /// <summary>
        /// 工序数量
        /// </summary>
        public int ProcessCount { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public long PersonId { get; set; }
        /// <summary>
        /// 所属部门
        /// </summary>
        public long DepartmentId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Required]
        public bool IsActive { get; set; } = true;
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(500)]
        public string Remarks { get; set; }
    }
}
